package com.hp.service;

import com.hp.entity.Announcement;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnnouncementService {
    List<Announcement> queryAll(Announcement announcement, @Param("page") Integer page, @Param("limit") Integer limit);

    int insert(Announcement announcement);

    int del(Integer id);

    Announcement findId(Integer id);

    int update(Announcement announcement);
}
